package com.ytd.smartcanteen.weighting;

import com.tencent.bugly.crashreport.CrashReport;
import com.ytd.common.base.BaseApplication;
import com.ytd.common.util.DeviceUtil;

import cn.ytd.smartcanteen.weighting.BuildConfig;

/**
 * Your class notes
 *
 * @author gaoguanchao
 * @since 2023/4/17
 */
public class WeightingApplication extends BaseApplication {
    @Override
    public void onCreate() {
        super.onCreate();
        CrashReport.UserStrategy strategy = getCrashHandleCallback();
        CrashReport.initCrashReport(getApplicationContext(), "217da59821", false, strategy);

        CrashReport.setDeviceId(this, DeviceUtil.getDeviceSN());
        CrashReport.setUserId(this, DeviceUtil.getDeviceSN());

        CrashReport.setIsDevelopmentDevice(this, BuildConfig.DEBUG);

//        LogUtil.setLogEnable(BuildConfig.DEBUG);
    }
}
